<include file='./header' />
<meta http-equiv="Content-Type" content="text/html" charset="utf-8" />
<script type="text/javascript" src="__ROOT__/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
var v=1;
var vid=0;
$(function() {
   tabs(".zx_tab","on",".zx_con")
   showinfo(1);
})

function showinfo(id){
       vid = id;
       $.ajax({  
        type: "post",  
        url: "__URL__/pagebinding",
        dataType: 'json',
        data: {v:id},  
        beforeSend: function(XMLHttpRequest){
        },  
        success: function(json){
            if(json != null){
                $("#spanname").text(json.data[0].advisername);
                $("#spanjinli").text(json.data[0].desc);
                $("#spanshanchang").text(json.data[0].goodat);
                $("#imghead").attr("src",json.data[0].smallimg);
                $("#txtaccemail").val(json.data[0].email);
            }
        } 
    })
}

</script>
</head>

<body>
<!--顶部开始-->
<include file="./top" />
<!--顶部结束-->
<!--左导航开始-->
<include file="./left" />
<!--左导航结束-->
<!--主体开始-->
<div class="main-content">
    <div class="wrapper">
    	<div class="panel">
        	<div class="panel-head">
            	咨询
            </div>
            <div class="panel-body">
            	<div class="zx_main">
                    <div class="zx_con">
                        <div class="zx_con_one">
                            <div class="zx_img left"><img id="imghead"/></div>
                            <div class="zx_info left">
                            	<div>
                                	<span class="p-head">姓　　名：</span>
                                    <p id="spanname"></p>
                                </div>
                                <div>
                                	<span class="p-head">个人简介：</span>
                                    <p id="spanjinli"></p>
                                </div>
                                <div>
                                	<span class="p-head">主要负责：</span>
                                    <p id="spanshanchang"></p>
                                </div>
                            </div>
                            <div class="clear"></div>
                            <div class="zx_tool">
                            	<a href="#" class="btn btn-danger" data-reveal-id="appointment">预约面见</a>
                                <a href="#" class="btn btn-success"  data-reveal-id="askOnLine">邮件咨询</a>
                            </div>
                        </div>
                    </div>
                    <div class="clear"></div>
                    <div class="zx_tab">
                       <?php foreach ($adviserlist as $k => $v):?>
                           
                        <a href="javascript:void(0)" onClick="showinfo({$v['id']})"><img src="{$v['smallimg']}"/></a>
                        <!--<a href="javascript:void(0)" class="on"><img src="__ROOT__/images/adviser/zxImg01.png" /></a>-->
                       <?php endforeach?>
                    </div>
                </div>
                <div class="clear"></div>
                <hr>
                <div class="zx_sf">
                	<img src="__ROOT__/images/adviser/zx_bz.png">
                    <img src="__ROOT__/images/adviser/zx_ad.png" >
                </div>
            </div>
            
        </div>
        
    </div>
</div>
<!--主体结束-->
<!--底部开始-->
<include file="./foot" />
<!--底部结束-->
<!--弹出层开始-->
<include file="./layer_ask" />
<!--弹出层结束-->
</body>
</html>